﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/13 20:06:03
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_SpecialPersonnel", new string[] { "Sp_ID" })]
    public class ScmSpecialpersonnelInfo : BaseEntity
    {
        public ScmSpecialpersonnelInfo()
        {

        }
        
        
        private string _spId;
        /// <summary>
        /// 特种作业人ID
        /// </summary>
        [ColumnMap("Sp_ID", System.Data.DbType.String)]
        public string Sp_ID
        {
            get {return _spId;}
            set
            {
                if (object.Equals(this._spId, value) != true)
                {
                    this._spId = value;
                    this.RaisePropertyChanged("Sp_ID");
                }
            }
        }
        
        
        private int _spOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Sp_OperateUserID", System.Data.DbType.Int32)]
        public int Sp_OperateUserID
        {
            get {return _spOperateuserid;}
            set
            {
                if (object.Equals(this._spOperateuserid, value) != true)
                {
                    this._spOperateuserid = value;
                    this.RaisePropertyChanged("Sp_OperateUserID");
                }
            }
        }
        
        
        private string _spOperateusername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Sp_OperateUserName", System.Data.DbType.String)]
        public string Sp_OperateUserName
        {
            get {return _spOperateusername;}
            set
            {
                if (object.Equals(this._spOperateusername, value) != true)
                {
                    this._spOperateusername = value;
                    this.RaisePropertyChanged("Sp_OperateUserName");
                }
            }
        }
        
        
        private DateTime _spOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Sp_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Sp_OperateTime
        {
            get {return _spOperatetime;}
            set
            {
                if (object.Equals(this._spOperatetime, value) != true)
                {
                    this._spOperatetime = value;
                    this.RaisePropertyChanged("Sp_OperateTime");
                }
            }
        }
        
        
        private string _spSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("Sp_Section", System.Data.DbType.String)]
        public string Sp_Section
        {
            get {return _spSection;}
            set
            {
                if (object.Equals(this._spSection, value) != true)
                {
                    this._spSection = value;
                    this.RaisePropertyChanged("Sp_Section");
                }
            }
        }
        
        
        private int _spConstructionid;
        /// <summary>
        /// 施工单位ID
        /// </summary>
        [ColumnMap("Sp_ConstructionID", System.Data.DbType.Int32)]
        public int Sp_ConstructionID
        {
            get {return _spConstructionid;}
            set
            {
                if (object.Equals(this._spConstructionid, value) != true)
                {
                    this._spConstructionid = value;
                    this.RaisePropertyChanged("Sp_ConstructionID");
                }
            }
        }
        
        
        private string _spConstructionname;
        /// <summary>
        /// 施工单位名称
        /// </summary>
        [ColumnMap("Sp_ConstructionName", System.Data.DbType.String)]
        public string Sp_ConstructionName
        {
            get {return _spConstructionname;}
            set
            {
                if (object.Equals(this._spConstructionname, value) != true)
                {
                    this._spConstructionname = value;
                    this.RaisePropertyChanged("Sp_ConstructionName");
                }
            }
        }
        
        
        private string _spName;
        /// <summary>
        /// 姓名
        /// </summary>
        [ColumnMap("Sp_Name", System.Data.DbType.String)]
        public string Sp_Name
        {
            get {return _spName;}
            set
            {
                if (object.Equals(this._spName, value) != true)
                {
                    this._spName = value;
                    this.RaisePropertyChanged("Sp_Name");
                }
            }
        }
        
        
        private string _spSex;
        /// <summary>
        /// 性别
        /// </summary>
        [ColumnMap("Sp_Sex", System.Data.DbType.String)]
        public string Sp_Sex
        {
            get {return _spSex;}
            set
            {
                if (object.Equals(this._spSex, value) != true)
                {
                    this._spSex = value;
                    this.RaisePropertyChanged("Sp_Sex");
                }
            }
        }
        
        
        private string _spWork;
        /// <summary>
        /// 工种
        /// </summary>
        [ColumnMap("Sp_Work", System.Data.DbType.String)]
        public string Sp_Work
        {
            get {return _spWork;}
            set
            {
                if (object.Equals(this._spWork, value) != true)
                {
                    this._spWork = value;
                    this.RaisePropertyChanged("Sp_Work");
                }
            }
        }
        
        
        private string _spCertificatenumb;
        /// <summary>
        /// 证书编号
        /// </summary>
        [ColumnMap("Sp_CertificateNumb", System.Data.DbType.String)]
        public string Sp_CertificateNumb
        {
            get {return _spCertificatenumb;}
            set
            {
                if (object.Equals(this._spCertificatenumb, value) != true)
                {
                    this._spCertificatenumb = value;
                    this.RaisePropertyChanged("Sp_CertificateNumb");
                }
            }
        }
        
        
        private DateTime? _spCertificatedate;
        /// <summary>
        /// 发证日期
        /// </summary>
        [ColumnMap("Sp_CertificateDate", System.Data.DbType.DateTime)]
        public DateTime? Sp_CertificateDate
        {
            get {return _spCertificatedate;}
            set
            {
                if (object.Equals(this._spCertificatedate, value) != true)
                {
                    this._spCertificatedate = value;
                    this.RaisePropertyChanged("Sp_CertificateDate");
                }
            }
        }
        
        
        private DateTime? _spValiditydate;
        /// <summary>
        /// 有效期
        /// </summary>
        [ColumnMap("Sp_ValidityDate", System.Data.DbType.DateTime)]
        public DateTime? Sp_ValidityDate
        {
            get {return _spValiditydate;}
            set
            {
                if (object.Equals(this._spValiditydate, value) != true)
                {
                    this._spValiditydate = value;
                    this.RaisePropertyChanged("Sp_ValidityDate");
                }
            }
        }
        
        
        private DateTime? _spEnterdate;
        /// <summary>
        /// 进场日期
        /// </summary>
        [ColumnMap("Sp_EnterDate", System.Data.DbType.DateTime)]
        public DateTime? Sp_EnterDate
        {
            get {return _spEnterdate;}
            set
            {
                if (object.Equals(this._spEnterdate, value) != true)
                {
                    this._spEnterdate = value;
                    this.RaisePropertyChanged("Sp_EnterDate");
                }
            }
        }
        
        
        private DateTime? _spExitdate;
        /// <summary>
        /// 退场日期
        /// </summary>
        [ColumnMap("Sp_ExitDate", System.Data.DbType.DateTime)]
        public DateTime? Sp_ExitDate
        {
            get {return _spExitdate;}
            set
            {
                if (object.Equals(this._spExitdate, value) != true)
                {
                    this._spExitdate = value;
                    this.RaisePropertyChanged("Sp_ExitDate");
                }
            }
        }
        
        
    }
}



